package com.lixinlei.meetingfilm.consumer.feign;

import com.lixinlei.meetingfilm.consumer.feign.vo.UserModel;
import org.springframework.stereotype.Service;

/**
 * Feign 调用 - 业务降级的方法
 * 这个类的类名上如果没有 @Primary 注解，Feign 自己基于动态代理生成的实现就会被默认加载；
 */
@Service
public class ProviderFallbackAPIImpl implements ProviderApi {

    @Override
    public String invokerProviderController(String message) {
        return "invokerProviderController fallback message = " + message;
    }

    @Override
    public String providerPost(String author, String providerId, UserModel userModel) {
        return "providerPost fallback message";
    }

}
